<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>YK Value-added System</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/admin.css" />
	<link rel="stylesheet" type="text/css" href="css/common.css" />
	<script src="js/json.js" type="text/javascript"></script>
	<script src="js/prototype.js" type="text/javascript"></script>
	<script type="text/javascript">
		function check(){
			if(document.getElementById("quotUrl.quot_name").value==""){
				alert("报价名称不能为空！");
				document.getElementById("quotUrl.quot_name").focus();
				return false ;
			}
			if(document.getElementById("url").value==""){
				alert("文件地址不能为空！");
				document.getElementById("url").focus();
				return false ;
			}
	        return true;
		}
	</script>
  </head>
  
  <body>
<table width="95%" border="0" align="center" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0">
      <tr>
        <td width="30"><img src="images/location_left.gif" width="24" height="30" /></td>
        <td>
        	您当前的位置是：报价 -&gt;新增文件列表<br>
        </td>
      </tr>
      <tr>
          <td colspan="2"><hr width="80%" align="left"></td>
		</tr>
    </table></td>
  </tr>
  <tr>
    <td><form id="form1" name="form1" method="post" action="<%=basePath%>admin/tongzhou/quotUrl!addQuotUrl.action" enctype="multipart/form-data" onsubmit="return check();">
      <table width="80%" border="0" cellspacing="3">
      <tr>
          <td colspan="2"><font color="red" style="font-size:12px;"></font></td>
		</tr>
        <tr>
          <td width="100" align="right">
          	<span class="style">*</span>报价名称：
          </td>
          <td>
          	<input type="text" style="width:500px" id="quotUrl.quot_name" name="quotUrl.quot_name" maxlength="30" value="" style="height: 25px;"/>
          </td>
        </tr>
        <tr>
          <td width="100" align="right">
          	<span class="style">*</span>文件地址：
          </td>
          <td>
          	<input type="file" name="url" id="url"/>
          </td>
        </tr>
		<tr>
          <td colspan="2"><hr width="100%" align="left"></td>
		</tr>
        <tr>
          <td align="center" colspan="1"><input type="submit" name="Submit" value="增加" class="Button" /></td>
          <td colspan="1"><input type="button" name="Submit22" value="返回" class="Button"  onclick="window.location='<%=basePath%>admin/tongzhou/quotUrl!listQuotUrl.action'"/></td>
        </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
</body>
</html>
